package com.ruoyi.zxjd.document.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 公文附件对象 document_file
 * 
 * @author lcc
 * @date 2021-01-28
 */
public class DocumentFile extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 文件编号 */
    private Long fileId;

    /** 文件名称 */
    @Excel(name = "文件名称")
    private String fileName;

    /** 文件相对路径 */
    @Excel(name = "文件相对路径")
    private String filePath;

    /** 文件内容类型 */
    @Excel(name = "文件内容类型")
    private String fileContentType;

    /** 文件后缀扩展名 */
    @Excel(name = "文件后缀扩展名")
    private String fileExtension;

    /** 文件大小(单位B) */
    @Excel(name = "文件大小(单位B)")
    private Long fileSize;

    /** 文件绝对路径 */
    @Excel(name = "文件绝对路径")
    private String fileUrl;

    /** 是否有效 */
    private String status;

    /** 业务ID */
    @Excel(name = "业务ID")
    private Long businessId;

    /** 业务类型 */
    @Excel(name = "业务类型")
    private String businessType;

    public void setFileId(Long fileId) 
    {
        this.fileId = fileId;
    }

    public Long getFileId() 
    {
        return fileId;
    }
    public void setFileName(String fileName) 
    {
        this.fileName = fileName;
    }

    public String getFileName() 
    {
        return fileName;
    }
    public void setFilePath(String filePath) 
    {
        this.filePath = filePath;
    }

    public String getFilePath() 
    {
        return filePath;
    }
    public void setFileContentType(String fileContentType) 
    {
        this.fileContentType = fileContentType;
    }

    public String getFileContentType() 
    {
        return fileContentType;
    }
    public void setFileExtension(String fileExtension) 
    {
        this.fileExtension = fileExtension;
    }

    public String getFileExtension() 
    {
        return fileExtension;
    }
    public void setFileSize(Long fileSize) 
    {
        this.fileSize = fileSize;
    }

    public Long getFileSize() 
    {
        return fileSize;
    }
    public void setFileUrl(String fileUrl) 
    {
        this.fileUrl = fileUrl;
    }

    public String getFileUrl() 
    {
        return fileUrl;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public DocumentFile() {
    }

    public Long getBusinessId() {
        return businessId;
    }

    public void setBusinessId(Long businessId) {
        this.businessId = businessId;
    }

    public String getBusinessType() {
        return businessType;
    }

    public void setBusinessType(String businessType) {
        this.businessType = businessType;
    }
    

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("fileId", getFileId())
            .append("fileName", getFileName())
            .append("filePath", getFilePath())
            .append("fileContentType", getFileContentType())
            .append("fileExtension", getFileExtension())
            .append("fileSize", getFileSize())
            .append("fileUrl", getFileUrl())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("businessId", getBusinessId())
            .append("businessType", getBusinessType())
            .toString();
    }

    public DocumentFile(String fileName, String filePath, String fileContentType, String fileExtension, Long fileSize,
            String fileUrl, String status) {
        this.fileName = fileName;
        this.filePath = filePath;
        this.fileContentType = fileContentType;
        this.fileExtension = fileExtension;
        this.fileSize = fileSize;
        this.fileUrl = fileUrl;
        this.status = status;
    }

}
